import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter } from 'react-router-dom';
import App from './App';
//引入公共css
import './assets/css/public.css';
//引入静态css
import './assets/css/reset.css';
//尝试引入iconfont
import './assets/iconfont/iconfont.css';
//引入静态rem的js
import './assets/js/fontSize';
import './index.css';
import reportWebVitals from './reportWebVitals';

//在组件原型上添加一个url地址
Component.prototype.url = 'http://localhost:3000'
//在组件原型上添加uid属性
Component.prototype.uid = JSON.parse(localStorage.getItem('user')).uid || ''

ReactDOM.render(
    <BrowserRouter>
        <App />
    </BrowserRouter>,
  document.getElementById('root')
);

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
